using MySolution.Application;
using Mysolution.Infrastructure;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddControllers();
// builder.Services.AddInfrastructure(builder.Configuration); //先生成数据库
builder.Services.AddApplication();
var app = builder.Build();


app.MapControllers();
app.Run();


